﻿using System.Collections.Generic;

namespace Firefly.Framework.Input
{
    class InputMapUpdateOrderComparer : IComparer<IInputMap>
    {
        #region IComparer<T> Members

        public int Compare(IInputMap left, IInputMap right)
        {
            int retval = left.UpdateOrder.CompareTo(right.UpdateOrder);

            if (retval < 0)
            {
                return -1;
            }
            else
            {
                return (retval > 0) ? 1 : 0;
            }
        }

        #endregion
    }
}
